package com.knight.hadoop.day04.bigdata.proxy;

import org.junit.Test;

public class ProxySaleAction {

	@Test
	public void saleYifu() {
		IBoos boss = ProxyBoss.getProxy(10, IBoos.class, Boos.class);
		System.out.println("代理经营");
		int money = boss.yifu("20");
		System.out.println("衣服成交价："+money);
	}
	
	@Test
	public void testProxy(){
		IBoos boss = ProxyBoss.getProxy2(IBoos.class);
		boss.yifu("10");
	}
}
